package com.iplant.wms.service.basicenum.wms;


import com.iplant.base.po.enums.BaseEnum;

public enum WMSStockStatus implements BaseEnum {
    /**
     * 默认 无须处理
     */
    Default(0, "默认"),

    /**
     * 激活
     */
    Active(1, "激活"),
    /**
     * 冻结
     */
    Freeze(2, "冻结");

    private int value;
    private String label;
    private String remark = "";

    WMSStockStatus(int value, String label) {
        this.value = value;
        this.label = label;
    }

    public static WMSStockStatus getEnumType(int val) {
        for (WMSStockStatus type : WMSStockStatus.values()) {
            if (type.getValue() == val) {
                return type;
            }
        }
        return null;
    }

    @Override
    public int getValue() {
        return value;
    }

    @Override
    public void setValue(int value) {
        this.value = value;
    }

    @Override
    public String getLabel() {
        return label;
    }

    @Override
    public void setLabel(String label) {
        this.label = label;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }
}
